<%@page import="org.sunsys.tic.search.engine.WebConstants"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%
	String userName = null;
	userName = (String)session.getAttribute(WebConstants.USER_NAME);
	
	
	String userNameVisiableText = null;
	String userNameATagHrefValue = null;
	
	if(userName != null) {
		userNameVisiableText = userName;
		userNameATagHrefValue = WebConstants.USER_PROFILE;
	} else {
		userNameVisiableText = WebConstants.LOGIN_MESSAGE;
		userNameATagHrefValue = WebConstants.LOGIN_PAGE;
	}
%>


<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Insert title here</title>
		
		<!-- include JQuery  -->
		<script src="jquery-1.11.1.js"> 
		</script>
		
		<script src="main.js"> 
		</script>
		
	</head>
	
	<body>
		<!-- TIC Page Header -->
		<div id="pageHeaderDiv">
			<table>
				<tr>
					<td> <a href="Home.jsp" id="homeATage" >Home</a></td>
					<td> <a href="#" id="BookSearchATag" onclick="loadSearchPage('BookSearch.jsp')" >Books Search</a> </td>
					<td> <a href="#" id="JournalsSearchATag" onclick="loadSearchPage('JournalsSearch.jsp')">Journals Search</a> </td>
					<td>Thesis Search</td>
					<td><a href="<%=userNameATagHrefValue %>" id="UserProfileATag"><%=userNameVisiableText %></a></td>
				</tr>
			</table>
		</div>
		
		<!-- TIC Page Content Area -->
		<div id="pageContentAreaDiv">
		</div>
		
		
		
	</body>

</html>